import request from '@/utils/request'

//展示单个活动的信息
export function singleActivityDisplay(data) {
    return request({
      url: '/automaticoper/activity/singleActivityDisplay',
      method: 'post',
      data: data
    })
}

//创建新的定时任务活动
export function createActivity(data) {
    return request({
      url: '/automaticoper/activity/createActivity',
      method: 'post',
      data: data
    })
}

//修改定时任务活动
export function updateActivity(data) {
    return request({
      url: '/automaticoper/activity/updateActivity',
      method: 'post',
      data: data
    })
}

//活动上线/下线/删除
export function updateActivityStatus(data) {
  return request({
    url: '/automaticoper/activity/updateActivityStatus',
    method: 'post',
    data: data
  })
}

//群列表
export function getGroupList(data) {
  return request({
    url: '/automaticoper/group/getGroupList',
    method: 'get',
    params: data
  })
}

//群列表
export function selectColoumnByGroupId(data) {
  return request({
    url: '/automaticoper/activity/selectColoumnByGroupId',
    method: 'POST',
    data: data
  })
}

//获取服务号绑定的微信可顾问列表
export function getWxServiceCustomers(data) {
  return request({
    url: '/automaticoper/activity/getWxServiceCustomers',
    method: 'POST',
    data: data
  })
}

//获取服务号可使用的模板
export function getTemplates(data) {
  return request({
    url: '/automaticoper/activity/getTemplates',
    method: 'POST',
    data: data
  })
}